package com.example.spring.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.example.spring.Dao.UserDao;
import com.example.spring.bean.UserBean;
import com.example.spring.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Resource
    private  UserDao userDao;


    @Override
    public List<UserBean> getUser() {
     List<UserBean> list =  userDao.getUser();
     logger.info(list.toString());

     return list;
    }
}
